package com.jr.pojo;

import java.util.Date;

public class Users {

    private Integer userId; //id
    private String userCode; //用户编码
    private String password; //密码
    private String email; //邮箱地址
    private String gender; //性别

    private Date registerTime; //注册日期
    private Date lastLoginTime; //最后登录时间


    public Users() {
    }

    //全参 7个
    public Users(Integer userId, String userCode, String password, String email,
                 String gender, Date registerTime, Date lastLoginTime) {
        this.userId = userId;
        this.userCode = userCode;
        this.password = password;
        this.email = email;
        this.gender = gender;
        this.registerTime = registerTime;
        this.lastLoginTime = lastLoginTime;
    }

    // 6个参，没有userId
    public Users(String userCode, String password, String email,
                 String gender, Date registerTime, Date lastLoginTime) {
        this.userCode = userCode;
        this.password = password;
        this.email = email;
        this.gender = gender;
        this.registerTime = registerTime;
        this.lastLoginTime = lastLoginTime;
    }

    @Override
    public String toString() {
        return "Users{" +
                "userId=" + userId +
                ", userCode='" + userCode + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", gender='" + gender + '\'' +
                ", registerTime=" + registerTime +
                ", lastLoginTime=" + lastLoginTime +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
}
